#pragma once
#include "tinydbmapper.h"
#include "TinyDevice.h"

namespace DBLayer {

class CTrunkMapper :
	public CTinyDBMapper<HAL::CTinyDevice>
{
public:
	CTrunkMapper(void)
	{
		selectStr = "select t.cardid,cardsn,cardname, trunknumber, channelID from trunk as t join voicecard as v on t.cardid = v.cardid";
	}
	virtual ~CTrunkMapper(void);
	//virtual bool loadData(int type,CTinyDBInterface* m_DBIF);
	virtual std::vector<HAL::CTinyDevice*>* GetAll();
};
}